public class Test1 {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        arrayList.add(0,2);
        arrayList.add(1,3);
        arrayList.add(2,6);
        arrayList.display();
        System.out.println("===============");
        System.out.println(arrayList.contains(3));
        System.out.println("===============");
        System.out.println(arrayList.search(3));
        System.out.println("===============");
        System.out.println(arrayList.getPos(2));
        System.out.println("===============");
        arrayList.updataPos(2,33);
        arrayList.display();
        System.out.println("===============");
        arrayList.remove(33);
        arrayList.display();
/*        System.out.println("=========清空=========");
        arrayList.clear();
        arrayList.display();*/
        System.out.println("=======================");
        System.out.println(arrayList.size());
        System.out.println("========================");
        arrayList.add(1,23);
        arrayList.display();


    }

}
